package com.xkh.common.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor

public class NearbyPositionDTO implements Serializable {
    @ApiModelProperty("指定范围 单位km")
    @NotNull(message = "指定范围不能为空")
    private Double distance;
    @ApiModelProperty("经度")
    @NotNull(message = "经度不能为空")
    private Double longitude;
    @ApiModelProperty("纬度")
    @NotNull(message = "纬度不能为空")
    private Double latitude;
    @ApiModelProperty("性别 0 全部 1男 2女")
    private Integer sex = 0;


    public NearbyPositionDTO(Double distance, Double longitude, Double latitude, Integer sex) {
        this.distance = distance;
        this.longitude = longitude;
        this.latitude = latitude;
        this.sex = sex;
    }
}
